{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    {:token()}
    <div class="layui-form-item">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">
            {:Form::datetime("row[day]",$data.day,['class'=>'layui-input','data-date-type'=>'date'])}
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">昵称</label>
        <div class="layui-input-block">
            <input type="text" name="row[username]" lay-verify="required" autocomplete="off" placeholder="昵称"
                   class="layui-input" value="{$data.username}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">主播ID</label>
        <div class="layui-input-block">
            <input type="text" name="row[zid]" lay-verify="required" autocomplete="off" placeholder="主播ID"
                   class="layui-input" value="{$data.zid}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">场次ID</label>
        <div class="layui-input-block">
            <input type="text" name="row[cid]" lay-verify="required" autocomplete="off" placeholder="场次ID"
                   class="layui-input" value="{$data.cid}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">内容赛道</label>
        <div class="layui-input-block">
            <input type="text" name="row[cate]" lay-verify="required" autocomplete="off" placeholder="内容赛道"
                   class="layui-input" value="{$data.cate}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">内容稀缺度</label>
        <div class="layui-input-block">
            <input type="text" name="row[scarcity]" lay-verify="required" autocomplete="off" placeholder="内容稀缺度"
                   class="layui-input" value="{$data.scarcity}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户停留时长（分钟）</label>
        <div class="layui-input-block">
            <input type="text" name="row[stop_time]" lay-verify="required" autocomplete="off"
                   placeholder="推荐有效用户停留时长（分钟）"
                   class="layui-input" value="{$data.stop_time}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">有效时长（分钟）</label>
        <div class="layui-input-block">
            <input type="text" name="row[valid_time]" lay-verify="required" autocomplete="off" placeholder="有效时长"
                   class="layui-input" value="{$data.valid_time}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">内容质量等级</label>
        <div class="layui-input-block">
            <input type="text" name="row[level]" lay-verify="required" autocomplete="off" placeholder="内容质量等级"
                   class="layui-input" value="{$data.level}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">内容质量等级对应单价</label>
        <div class="layui-input-block">
            <input type="text" name="row[price]" lay-verify="required" autocomplete="off" placeholder="内容质量等级对应单价"
                   class="layui-input" value="{$data.price}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">是否结算</label>
        <div class="layui-input-block">
            <input type="text" name="row[is_ctb]" lay-verify="required" autocomplete="off" placeholder="是否结算"
                   class="layui-input" value="{$data.is_ctb}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">不结算原因</label>
        <div class="layui-input-block">
            <input type="text" name="row[reason]" lay-verify="required" autocomplete="off" placeholder="不结算原因"
                   class="layui-input" value="{$data.reason}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">预估奖励金额（元）</label>
        <div class="layui-input-block">
            <input type="text" name="row[money]" lay-verify="required" autocomplete="off" placeholder="预估奖励金额（元）"
                   class="layui-input" value="{$data.money}">
        </div>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}